package com.lanswon.qzsmk.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.lanswon.qzsmk.model.UserRoleAdmin;
@Repository
public interface UserRoleAdminMapper {
	/**
	 * 保存
	 * @param record
	 * @return
	 */
    int insert(UserRoleAdmin record);
    
    /**
     * 查询
     * @param userId 用户id
     * @return UserRoleAdmin
     */
    List<UserRoleAdmin> queryUserRoleAdminByUserId(Integer userId);
    
    /**
     * 查询
     * @param userId 用户id
     * @return UserRoleAdmin
     */
    List<UserRoleAdmin> queryUserRoleAdminByRoleId(Integer roleId);
    
    /**
     * 更新
     * @param record
     * @return
     */
    int updateByUserId(UserRoleAdmin record);
    
    /**
     * 删除
     * @param record
     * @return
     */
    int delete(UserRoleAdmin record);
    
    /**
     * 查询
     * @param ura
     * @return
     */
    UserRoleAdmin queryUserRoleAdminByUserRoleAdmin(UserRoleAdmin ura);
    
}